package com.wzy.designpattern.structural.proxy;

/**
 * 描述
 * 创建人    Wzy
 * 创建时间: 2020-05-16  14:34
 */
public class OrderServiceImpl implements IOrderService {
    private IOrderDao orderDao;


    @Override
    public int saveOrder(Order order) {
        orderDao = new OrderDaoImpl();
        System.out.println("service 调用 dao 完成添加Order");
        return orderDao.insert(order);

    }
}
